package com.cloud.code.牛客网;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Test53 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            String line = scanner.nextLine();
            int start = Integer.parseInt(scanner.nextLine());
            int end = Integer.parseInt(scanner.nextLine());

            String[] s = line.split(" ");

            if(end>s.length-1 || start > end){
                System.out.println("EMPTY");
            }else {

                List<String> list = new ArrayList<>();
                list.addAll(Arrays.asList(s).subList(0,start));

                for (int i = end; i >= start; i--) {
                    list.add(s[i]);
                }

                list.addAll(Arrays.asList(s).subList(end+1,s.length));

                StringBuilder stringBuilder = new StringBuilder();
                for (int i = 0; i < list.size(); i++) {
                    stringBuilder.append(" ").append(list.get(i));
                }

                String trim = stringBuilder.toString().trim();
                System.out.println(trim);
            }






        }
    }
}
